package Thread.thread;

/**
 * @author 23050
 * @version 1.0
 * @description: TODO
 * @date 2024/2/29 21:38
 */
public class MyThread extends Thread{

    @Override
    public void run() {
        System.out.println("继承Thread类");
    }

    public static void main(String[] args) {
        //创建线程
        MyThread t1 = new MyThread();
        MyThread t2 = new MyThread();
        //启动线程
        t1.start();
        t2.start();
    }


}
